import request from '@/utils/request'



// 获取用户详细信息
export function listMy(data) {
    return request({
        url: '/user/moneyRecord/listMy',
        method: 'get',
        params:data
    })
}

// 删除冠字号记录
export function deleteMy(id) {
    return request({
        url: '/user/moneyRecord/deleteMy/' + id,
        method: 'delete'
    })
}


// 获取用户详细信息
export function insertOne(data) {
    return request({
        url: '/user/moneyRecord/insertOne',
        method: 'post',
        data:data
    })
}

export function insertTen(data) {
    return request({
        url: '/user/moneyRecord/insertTen',
        method: 'post',
        data:data
    })
}

export function insertTens(data) {
    return request({
        url: '/user/moneyRecord/insertTens',
        method: 'post',
        data:data
    })
}

export function insertContinuousCodes(data) {
    return request({
        url: '/user/moneyRecord/insertContinuousCodes',
        method: 'post',
        data:data
    })
}

export function getTenCodes(num) {
    return request({
        url: `/user/moneyRecord/createTenCodes/${num}`,
        method: 'get',
    })
}

export function getHundredCodes(num) {
    return request({
        url: `/user/moneyRecord/createTensCodes/${num}`,
        method: 'get',
    })
}

export function getContinuousCodes(startCode, endCode) {
    return request({
        url: `/user/moneyRecord/createContinuousCodes/${startCode}/${endCode}`,
        method: 'get',
    })
}

export function getMyNiceCodes() {
    return request({
        url: `/user/moneyRecord/getMyNiceCodes`,
        method: 'get',
    })
}
export function getMatching() {
    return request({
        url: `/user/moneyRecord/getMatching`,
        method: 'get',
    })
}

export function getNiceCodes() {
    return request({
        url: `/user/moneyRecord/getNoMyNiceCodes`,
        method: 'get',
    })
}
export function updateMyNiceCord(data) {
    return request({
        url: '/user/moneyRecord/updateMyNiceCord',
        method: 'put',
        data:data
    })
}


